import request from '/@/utils/request';

/**
 *
 * 系统用户接口
 * @method getUserInfoList 获取用户信息列表
 */
export function systemUserApi() {
    return {
        getUserInfoList: (data: object) => {
            return request({
                url: '/user/getUserInfoList',
                method: 'post',
                data,
            });
        },
        getUserInfoPage: (data: object) => {
            return request({
                url: '/user/getUserInfoPage',
                method: 'post',
                data,
            });
        },
        addUserInfo:(data: object) =>{
            return request({
                url: '/user/addUserInfo',
                method: 'post',
                data,
            });
        },
        delUserInfo: (data: string) =>{
            return request({
                url: '/user/delUserInfo/' + data,
                method: 'delete'
            });
        }
    };
}